// createWebHashHistory 是hash模式就是访问链接带有#
// createWebHistory  是history模式
import {createRouter, createWebHashHistory} from 'vue-router'

// 引入文件，动态路由
const Home = () => import("@/views/home/index.vue");
const planeLine = () => import("@/views/planeLine/index.vue");
const animate = () => import("@/views/animate/index.vue");
const star = () => import("@/views/star/index.vue");
const routes = [
    {
        path: "/",
        component: Home,
    },
    {
        path: "/planeLine",
        component: planeLine,
    },
    {
        path: "/animate",
        component: animate,
    },
    {
        path: "/star",
        component: star,
    }
];

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router